package com.xgr.wonderful.constant;


public interface Constant {
	
	String NETWORK_TYPE_WIFI = "wifi";
	String NETWORK_TYPE_MOBILE = "mobile";
	String NETWORK_TYPE_ERROR = "error";
	
	/**
	 * 分享相关
	 */
    public static final String DESCRIPTOR = "com.umeng.share";
    public static final String SHARE_TITLE = "来自微圈";
    public static final String SHARE_OFFICIAL_URL = "http://weitushare.com";
    public static String WeiXin_APP_ID="wx177787b5da2a86a6";
    public static String WeiXin_APP_Secret="63a6a45c0d1674a8330c2d69e214a2d9";
    public static String QQ_APP_ID="1101959797";
    public static String QQ_APP_KEY="3bdr5UqJGpGVgjej";

	public static final String APP_LAUNCH_BY_NOTIFICATION = "noti_launch";
	public static final String COMMENT_PUSH_BY_HX = "comment_push_by_hx";
	public static final String COMMENT_PUSH_FROM="comment_push_from" ;
	public static final String STATUS_ID = "statuID";
	public static final String STATUS_COMMENTED = "status_commented";
	
	public static final String CACHE_FILE_PATH ="data/data/com.xgr.wonderful/files/cachejson";
	public static final String CACHE_USER_PUBLISED_STATUS = "user_publish";
	public static final String CACHE_USER_REPLIED_STATUS = "user_replied";
	public static final String CACHE_USER_STATUS = "status";
	public static final String CACHE_USER_LIKE_RELATIONS = "user_like_relations"; 
	
	public static final String BASIC_PRE_NAME = "basic_config_pre";
	public static final String CURRENT_VERSION = "current_version";
	public static final String IS_LOG_IN = "is_login";
	public static final String IS_GET_ALERT = "is_get_alert";
	public static final String IS_SOUND_ALERT = "is_sound_alert";
	public static final String IS_VIBRATE_ALERT = "is_vibrate_alert";
	public static final String IS_GET_PUSH = "is_get_push";
	public static final String IS_AD_SHOW="is_ad_show" ;
	public static final String IS_NEW_MSG="is_new_msg" ; //主界面 的消息提醒
	public static final String LOCAL_USER_JSON = "local_user_json";
	
	public static final String HTTP_REQUEST_HEADER_TOKEN = "token";
	public static final String HTTP_REQUEST_BODY_FILE = "file";
	public static final String HTTP_REQUEST_CHARSET = "utf-8";
	public static final String HTTP_REQUEST_RESULT_STATUS = "status";
	public static final String HTTP_REQUEST_RESULT_DATA = "data";
	public static final String HTTP_REQUEST_RESULT_INFO = "info";
	
	public static final String COMMENT_NUM_INCREAMENT = "comment_num_increament";
	public static final String COMMENT_FROM_SERVER = "successful_comment";
	public static final String STATUS_FROM_SERVER = "successful_status";


	public static final int NUMBERS_PER_PAGE = 15;//每次请求返回评论条数
	
	public static final int ERR_HTTP_REQUEST_SUCCESS  = 0;
	public static final int ERR_HTTP_REQUEST_FAILURE = 1;
	public static final int ERR_HTTP_NO_MORE_DATA_FROM_SERVER = 2;
	
	public static final int REQUEST_CODE_ALBUM = 0;
	public static final int REQUEST_CODE_CAMERA = 1;
	public static final int REQUEST_CODE_CROPED = 2;
	public static final int REQUEST_CODE_COMMENT_NUM = 3;
	public static final int REQUEST_CODE_PUBLISH_STATUS = 4;
	
	public static final int NEW_MESSAGE_NOTIFICATION_ID = 1;
	public static final int NEW_COMMENT_NOTIFICATION_ID = 2;
	public static final int HANDLE_CHAT_MESSAGE = 1;
	public static final int HANDLE_PUSH_MESSAGE = 2;
	
	public static final int NEW_MESSAGE_PRIORITY_LOW = 3;
	public static final int NEW_MESSAGE_PRIORITY_MIN = 5;
	public static final int NEW_MESSAGE_PRIORITY_HIGH = 7;
	
	
	public static final String DB_NAME = "local_info.db";
	public static final int DB_VERSION = 1;
	/**
	 * 聊天相关的
	 */
	public static final String CONVERSATION_PEER_NAME = "peer_name";
	public static final String CONVERSATION_LOCAL_NAME = "local_name";
	
	/**
	 *  数据库表名及属性名
	 */
	public static final String CONVERSATION_TABLE_NAME = "conversations";
	public static final String CONVERSATION_REMOTE_USER_ID = "userid";
	public static final String CONVERSATION_REMOTE_USER_NAME = "username";
	public static final String CONVERSATION_REMOTE_USER_PHOTO_BIG_URL = "bigurl";
	public static final String CONVERSATION_REMOTE_USER_PHOTO_SMALL_URL = "smallurl";
	
}
